package books.new_to_old

import kotlin.concurrent.thread

fun main(args: Array<String>) {
    thread {
        Thread.sleep(1000)
    }.start()

}

private @Volatile
var isRunning: Boolean = false

//同步代码
private @Synchronized
fun test() {
}